package com.sdy.healthcode.biz.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "社区出入情况")
public class BayonetManageDTO {

    /**
     * 主键
     */
    @ExcelIgnore
    private Integer id;

    /**
     * 楼宇
     */
    @ExcelIgnore
    @ApiModelProperty(value = "楼宇")
    private Integer building;

    /**
     * 楼宇
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "楼宇" ,index = 1)
    @ApiModelProperty(value = "楼宇")
    private String buildingStr;

    /**
     * 楼层
     */
    @ExcelIgnore
    @ApiModelProperty(value = "楼层")
    private Integer floor;

    /**
     * 楼层
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "楼层" ,index = 2)
    @ApiModelProperty(value = "楼层")
    private String floorStr;

    /**
     * 科室
     */
    @ExcelIgnore
    @ApiModelProperty(value = "科室")
    private Integer department;

    /**
     * 科室
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "科室" ,index = 3)
    @ApiModelProperty(value = "科室")
    private String departmentStr;

    /**
     * 卡口名称
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "卡口名称" ,index = 0)
    @ApiModelProperty(value = "卡口名称")
    private String bayonetName;

    /**
     * 卡口负责人
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "卡口负责人" ,index = 4)
    @ApiModelProperty(value = "卡口负责人")
    private String bayonetLeader;

    /**
     * 负责人联系方式
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "负责人联系方式" ,index = 5)
    @ApiModelProperty(value = "负责人联系方式")
    private String phone;

    /**
     * 状态(0-禁用 1-启用)
     */
    @ExcelIgnore
    @ApiModelProperty(value = "状态(0-禁用 1-启用)")
    private Integer state;

    /**
     * 状态(0-禁用 1-启用)
     */
    @ColumnWidth(8)
    @ExcelProperty(value = "状态" ,index = 6)
    @ApiModelProperty(value = "状态(0-禁用 1-启用)")
    private String stateStr;

    /**
     * 创建时间
     */
    @ExcelIgnore
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

    /**
     * 创建人
     */
    @ExcelIgnore
    @ApiModelProperty(value = "创建人")
    private Integer createUser;

    /**
     * 最新操作时间(禁用/启用)
     */
    @ExcelIgnore
    @ApiModelProperty(value = "最新操作时间(禁用/启用)")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date operationTime;

    /**
     * 最近一次操作人
     */
    @ExcelIgnore
    @ApiModelProperty(value = "最近一次操作人")
    private Integer operationUser;

    /**
     * 更新时间
     */
    @ExcelIgnore
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date updateTime;

    /**
     * 更新人员
     */
    @ExcelIgnore
    @ApiModelProperty(value = "更新人员")
    private Integer updateUser;

    /**
     * 卡口标识码
     */
    @ExcelIgnore
    @ApiModelProperty(value = "卡口标识码")
    private String bayonetToken;

    /**
     * 二维码地址
     */
    @ExcelIgnore
    @ApiModelProperty(value = "二维码地址")
    private String qrpicturePath;

}
